package com.ut.richpath.pathparser;

import ohos.agp.render.Path;

public class PathParser {

    /**
     * @param pathData The string representing a path, the same as "d" string in svg file.
     * @return the generated Path object.
     */
    public static Path createPathFromPathData(String pathData){
        return PathParserCompat.createPathFromPathData(pathData);
//        return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//            PathParserCompatApi21.createPathFromPathData(pathData) ?: Path()
//        } else {
//            PathParserCompat.createPathFromPathData(pathData)
//        }
    }

}
